﻿using Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Framework.IOC
{
    public static class AppBuilderExtensions
    {
        public static IAppBuilder UseIOC(this IAppBuilder builder, string path)
        {
            //USE可以带多个参数，对应中间件构造函数中的第2、3、....参数;
            return builder.Use<IOCMiddleware>(path);

        }
    }
}
